angular.module('myApp')
.controller('PaginationCtrl', ['$scope', function($scope) {
  $scope.total = 100;
  $scope.currentPage = 1;
  $scope.pageSize = 10;
  $scope.jumpPage = 1;

  $scope.onSizeChange = function(size) {
    console.log('每页数量改变:', size);
  };

  $scope.onCurrentChange = function(page) {
    console.log('当前页码改变:', page);
  };
}])
.directive('elPagination', elPagination);